package online.lmds.sdmanage.main.authentication.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import online.lmds.sdmanage.common.entity.BaseEntity;

import java.util.Date;

/**
 * Created by Brighten Ma on 2017/4/10.
 * 用户 sd_user 表
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class User  extends BaseEntity{

    //id
    private Integer id;

    private String uid;
    //用户名
    private String userName;

    //密码
    private String password;


    //旧密码
    private String oloPassword;

    //昵称
    private String nickName;

    private Integer gender;

    //手机号
    private String phone;

    //邮箱
    private String email;

    private String saying;

    public String getSaying() {
        return saying;
    }

    public void setSaying(String saying) {
        this.saying = saying;
    }

    //默认设备 id
    private Integer login_device_id;

    private String loginDeviceUid;


    private Integer permission;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getLogin_device_id() {
        return login_device_id;
    }

    public void setLogin_device_id(Integer login_device_id) {
        this.login_device_id = login_device_id;
    }

    public Integer getPermission() {
        return permission;
    }

    public void setPermission(Integer permission) {
        this.permission = permission;
    }

    //头像地址
    private String headImgUrl;

    private String token;

    private Date tokenExp;  //token有效期至


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOloPassword() {
        return oloPassword;
    }

    public void setOloPassword(String oloPassword) {
        this.oloPassword = oloPassword;
    }



    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }


    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getTokenExp() {
        return tokenExp;
    }

    public void setTokenExp(Date tokenExp) {
        this.tokenExp = tokenExp;
    }

    public String getLoginDeviceUid() {
        return loginDeviceUid;
    }

    public void setLoginDeviceUid(String loginDeviceUid) {
        this.loginDeviceUid = loginDeviceUid;
    }
}
